import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Window 2.14
Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("ScreenShot")

    Button{
        text: "启动截图"
        onClicked: {
            screenShotCom.source = "Screenshot.qml";
        }
    }

    Loader{
        id: screenShotCom
        onLoaded: {
            item.closing.connect(function (){
                screenShotCom.source = "";
            });
        }
    }
}
